package com.common.models;

import java.util.HashMap;
import java.util.Map;

/**
 * 字典代码
 *
 */
public class DictCode {
	
	/** 是，否 */
	public static final String YES = "1";	//是
	public static final String NO = "0";	//否
	
	/** 男，女 */
	public static final String MALE = "1";		//男
	public static final String FEMALE = "0";	//女
	
	/** 订单类型 */
	public static final String ORDER_TYPE_ONE_KEY = "0";	//一键预定的订单
	public static final String ORDER_TYPE_SYSTEM = "1";	//系统分配房间的订单
	
	/** 房源状态 */
	public static final String HOUSE_STATUS_UNLEASE = "unlease";			//暂不出租
	public static final String HOUSE_STATUS_REVERSABLE = "reversable";		//可预定
	public static final String HOUSE_STATUS_REVERSED = "reversed";			//已预定
	public static final String HOUSE_STATUS_UNSTAY = "unstay";				//待入住
	public static final String HOUSE_STATUS_STAY = "stay";					//已入住
	public static final String HOUSE_STATUS_CLEANING = "cleaning";			//保洁
	public static final String HOUSE_STATUS_MAINTAINING = "maintaining";	//维修
	public final static Map houseStatus = new HashMap() {{    
	    put(HOUSE_STATUS_UNLEASE, "暂不出租");    
	    put(HOUSE_STATUS_REVERSABLE, "可预定");
	    put(HOUSE_STATUS_REVERSED, "已预定");
	    put(HOUSE_STATUS_UNSTAY, "待入住");
	    put(HOUSE_STATUS_STAY, "已入住");
	    put(HOUSE_STATUS_CLEANING, "保洁");
	    put(HOUSE_STATUS_MAINTAINING, "维修");
	}};
	
	/** 订单状态 */
	public static final String ORDER_STATUS_UNALLOC = "unalloc";			//未支付
	public static final String ORDER_STATUS_UNPAID = "unpaid";				//未支付
	public static final String ORDER_STATUS_PAID = "paid";					//已支付
	public static final String ORDER_STATUS_STAY = "stay";					//已入住
	public static final String ORDER_STATUS_CANCELED = "canceled";			//已取消
	public static final String ORDER_STATUS_REFUND = "refund";				//已退订
	public static final String ORDER_STATUS_COMPLETE = "complete";			//已完成
	public final static Map orderStatus = new HashMap() {{    
	    put(ORDER_STATUS_UNALLOC, "待配房");    
	    put(ORDER_STATUS_UNPAID, "待支付");
	    put(ORDER_STATUS_PAID, "已支付");
	    put(ORDER_STATUS_STAY, "已入住");
	    put(ORDER_STATUS_CANCELED, "已取消");
	    put(ORDER_STATUS_REFUND, "已退订");
	    put(ORDER_STATUS_COMPLETE, "已完成");
	}};
	
	/** 押金状态 */
	public static final String DEPOSIT_STATUS_UNPAID = "0";	//未收押金
	public static final String DEPOSIT_STATUS_PAID = "1";		//已收押金
	public static final String DEPOSIT_STATUS_REFUND = "4";	//押金已退
	public final static Map depositStatus = new HashMap() {{    
	    put(DEPOSIT_STATUS_UNPAID, "未收押金");    
	    put(DEPOSIT_STATUS_PAID, "已收押金");
	    put(DEPOSIT_STATUS_REFUND, "押金已退");
	}};
	
	/** 优惠券状态 */
	public static final String COUPON_STATUS_UNUSE = "unuse";	//未使用
	public static final String COUPON_STATUS_USED = "used";		//已使用
	public static final String COUPON_STATUS_INVALID = "invalid";	//已失效
	public final static Map couponStatus = new HashMap() {{    
	    put(COUPON_STATUS_UNUSE, "未使用");    
	    put(COUPON_STATUS_USED, "已使用");
	    put(COUPON_STATUS_INVALID, "已失效");
	}};
	
	
	/** 自用参数 */
	public static final int DEFAULT_PAGE_SIZE = 10;	//默认分页的页尺寸
	public static final String DEFAULT_HOUSE_RENT_BEGIN_HOUR = "12:30:00";		//默认中午12点半开始入住
	public static final String DEFAULT_HOUSE_RENT_FINISH_HOUR = "12:00:00";	//默认中午12点结束入住
}
